<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>修改商机</title>
    <link rel="icon" href="favicon.ico" type="images/ico">
    <meta name="author" content="dc">
    <link href="/css/bootstrap.min.css" rel="stylesheet" />
    <link href="/css/materialdesignicons.min.css" rel="stylesheet" />
    <link href="/css/animate.min.css" rel="stylesheet" />
    <link href="/css/style.min.css" rel="stylesheet" />
    <link href="/js/bootstrap-table/bootstrap-table.min.css" rel="stylesheet" />
    <link rel="stylesheet" href="/js/jquery-confirm/jquery-confirm.min.css" />
    <link rel="stylesheet" href="/css/input_tags.css" />
    <!--时间选择插件-->
    <link rel="stylesheet" href="/js/bootstrap-datetimepicker/bootstrap-datetimepicker.min.css" />
    <!--日期选择插件-->
    <link rel="stylesheet" href="/js/bootstrap-datepicker/bootstrap-datepicker3.min.css" />
    <link rel="stylesheet" href="/css/input_tags.css" />
    <!-- 多选下拉 -->
    <link rel="stylesheet" href="/css/bootstrap-multiselect.css" type="text/css"/>
    <link rel="stylesheet" href="/css/bootstrap-select.css" type="text/css"/>
    <link rel="stylesheet" href="/css/skin.css" />
</head>
<body>
<div class="container-fluid">
    <div class="card">
        <div class="card-header">
            <h1 id="title">新增商机</h1>
        </div>
        <div class="card-body">
            <form class="well form-well" id="addOpportunityModel">
                <span id="opportunityBs" class="hidden" th:text="${addOpportunityQO.opportunityBs}"></span>
                <span id="contactIdAdd" class="hidden" th:text="${addOpportunityQO.contactId}"></span>
                <span id="customerIdAdd" class="hidden" th:text="${addOpportunityQO.customerId}"></span>
                <div class="row">
                    <div class="col-lg-4 col-md-4 col-sm-6 col-xs-12">
                        <label class="control-label label-required" for="opportunityTitle">商机标题</label>
                        <div class="form-content">
                            <input id="opportunityTitle" type="text" class="form-control">
                        </div>
                    </div>
                    <div class="col-lg-4 col-md-4 col-sm-6 col-xs-12">
                        <label class="control-label label-required" for="opportunityTheme">商机主题</label>
                        <div class="form-content">
                            <input maxlength="20" id="opportunityTheme" type="text" class="form-control">
                        </div>
                    </div>
                    <div class="col-lg-4 col-md-4 col-sm-6 col-xs-12">
                        <label class="control-label label-required" for="customerProductId">产品名称</label>
                        <div class="form-content">
                            <select class="form-control" id="customerProductId" type="text" title="请选择" data-live-search="true"></select>
                        </div>
                    </div>
                    <div class="col-lg-4 col-md-4 col-sm-6 col-xs-12">
                        <label class="control-label label-required" for="opportunityStatusAdd">商机状态</label>
                        <div class="form-content">
                            <select class="form-control" id="opportunityStatusAdd" type="text" title="请选择" data-live-search="false">
                                <option value="1">初步洽谈</option>
                                <option value="2">需求确定</option>
                                <option value="3">方案报价</option>
                                <option value="4">谈判</option>
                                <option value="5">洽谈合同</option>
                                <option value="6">赢单</option>
                                <option value="7">输单</option>
                            </select>
                        </div>
                    </div>
                    <div class="col-lg-4 col-md-4 col-sm-6 col-xs-12" id="customerIdHide">
                        <label class="control-label label-required" for="customerId">客户</label>
                        <div class="form-content">
                            <select class="form-control" id="customerId" type="text" title="请选择" data-live-search="true">
                            </select>
                        </div>
                    </div>
                    <div class="col-lg-4 col-md-4 col-sm-6 col-xs-12" id="contactIdHide">
                        <label class="control-label label-required" for="contactId">客户联系人</label>
                        <div class="form-content">
                            <select class="form-control" id="contactId" type="text" title="请选择" data-live-search="true" disabled>
                            </select>
                        </div>
                    </div>
                    <div class="col-lg-4 col-md-4 col-sm-6 col-xs-12">
                        <label class="control-label label-required" for="opportunityContact">商机联系人</label>
                        <div class="form-content">
                            <input maxlength="20" id="opportunityContact" type="text" class="form-control">
                        </div>
                    </div>
                    <div class="col-lg-4 col-md-4 col-sm-6 col-xs-12">
                        <label class="control-label label-required" for="estimatedSalesAmount">预计销售金额</label>
                        <div class="form-content">
                            <input maxlength="20" id="estimatedSalesAmount" type="text" class="form-control" placeholder="请输入预计销售金额" onkeyup="value=value.replace(/^\D*(\d*(?:\.\d{0,4})?).*$/g, '$1')">
                        </div>
                    </div>
                    <div class="col-lg-4 col-md-4 col-sm-6 col-xs-12">
                        <label class="control-label label-required" for="lostOrderFriend">输单友商</label>
                        <div class="form-content">
                            <input maxlength="20" id="lostOrderFriend" type="text" class="form-control">
                        </div>
                    </div>
                    <div class="col-lg-4 col-md-4 col-sm-6 col-xs-12">
                        <label class="control-label label-required" for="estimatedSigningTimeAdd">预计签单时间</label>
                        <div class="form-content">
                            <input maxlength="20" id="estimatedSigningTimeAdd" type="text" class="form-control date-input">
                        </div>
                    </div>
                    <div class="col-lg-4 col-md-4 col-sm-6 col-xs-12">
                        <label class="control-label label-required" for="lastFollowUpTime">最后跟进时间</label>
                        <div class="form-content">
                            <input maxlength="20" id="lastFollowUpTime" type="text" class="form-control date-input">
                        </div>
                    </div>
                    <div class="col-lg-4 col-md-4 col-sm-6 col-xs-12">
                        <label class="control-label label-required" for="nextFollowUpTime">下次跟进时间</label>
                        <div class="form-content">
                            <input maxlength="20" id="nextFollowUpTime" type="text" class="form-control date-input">
                        </div>
                    </div>
                    <div class="col-lg-4 col-md-4 col-sm-6 col-xs-12">
                        <label class="control-label label-required" for="possibilitySigning">签单可能性</label>
                        <div class="form-content">
                            <input maxlength="20" id="possibilitySigning" type="text" class="form-control" placeholder="请输入签单可能性">
                        </div>
                    </div>
                    <div class="col-lg-4 col-md-4 col-sm-6 col-xs-12">
                        <label class="control-label label-required" for="opportunityType">商机类型</label>
                        <div class="form-content">
                            <input maxlength="20" id="opportunityType" type="text" class="form-control" placeholder="请输入商机类型">
                        </div>
                    </div>
                    <div class="col-lg-4 col-md-4 col-sm-6 col-xs-12">
                        <label class="control-label label-required" for="opportunityAcquisitionTime">商机获取日期</label>
                        <div class="form-content">
                            <input maxlength="20" id="opportunityAcquisitionTime" type="text" class="form-control date-input" placeholder="请选择商机获取日期">
                        </div>
                    </div>
                    <div class="col-lg-4 col-md-4 col-sm-6 col-xs-12">
                        <label class="control-label label-required" for="opportunitySource">商机来源</label>
                        <div class="form-content">
                            <input maxlength="20" id="opportunitySource" type="text" class="form-control" placeholder="请输入商机来源">
                        </div>
                    </div>
                    <div class="col-lg-8 col-md-8 col-sm-12 col-xs-12">
                        <label class="control-label label-required" for="remarks">备注</label>
                        <div class="form-content">
                            <input maxlength="20" id="remarks" type="text" class="form-control" placeholder="请输入备注">
                        </div>
                    </div>
                </div>
            </form>
            <div class="form-actions">
                <button class="btn btn-primary btn-label" type="button" onclick="saveOpportunity()"><label><i class="mdi mdi-check"></i></label>确定</button>
                <button class="btn btn-default" type="button" onclick="cancelAddOpportunity();">重置</button>
            </div>
        </div>
    </div>
</div>

</body>
<script type="text/javascript" src="/js/jquery.min.js"></script>
<script type="text/javascript" src="/js/bootstrap.min.js"></script>
<script type="text/javascript" src="/js/perfect-scrollbar.min.js"></script>
<script type="text/javascript" src="/js/main.min.js"></script>
<script type="text/javascript" src="/js/bootstrap-table/bootstrap-table.min.js"></script>
<script type="text/javascript" src="/js/bootstrap-table/bootstrap-table-zh-CN.min.js"></script>
<script src="/js/jquery-confirm/jquery-confirm.min.js"></script>
<script src="/js/crm/common/city.js"></script>
<!--公共js-->
<script src="/js/crm/common/common.js"></script>
<script src="/js/crm/common/input-tag.js"></script>
<!--时间选择插件-->
<script src="/js/bootstrap-datetimepicker/moment.min.js"></script>
<script src="/js/bootstrap-datetimepicker/bootstrap-datetimepicker.min.js"></script>
<script src="/js/bootstrap-datetimepicker/locale/zh-cn.js"></script>
<!--日期选择插件-->
<script src="/js/bootstrap-datepicker/bootstrap-datepicker.min.js"></script>
<script src="/js/bootstrap-datepicker/locales/bootstrap-datepicker.zh-CN.min.js"></script>
<!-- 多选框下拉 -->
<script type="text/javascript" src="/js/bootstrap-select.js"></script>
<script type="text/javascript" src="/js/bootstrap.lyear.dropdowntree.min.js"></script>
<script src="/js/crm/opportunityManager/editOpportunity.js"></script>
</html>
